import {
  Modal
} from "antd"
import {ExclamationCircleOutlined} from '@ant-design/icons' 

function warning({title, content,okText}) {
  Modal.warning({
    title: <div style={{fontWeight:"550"}}>{title}</div>,
    content: <div style={{minHeight:"60px"}}>{content}</div>,
    icon:<ExclamationCircleOutlined style={{color:"red",fontSize:"60px"}} />,
    okText,
    centered:true
  });
}
export default warning